/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * NewAdminPanel.java
 *
 * Created on 18.03.2010, 20:39:16
 */

package org.bizon.dinner.common.gui;

/**
 *
 * @author Bizon
 */
public class NewAdminPanel extends javax.swing.JPanel {

    /** Creates new form NewAdminPanel */
    public NewAdminPanel() {
        initComponents();
        adminPanel.setViewportView(new AdminPanel());
        reportPane.setViewportView(new ReportPanel());
        revalidate();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTabbedPane1 = new javax.swing.JTabbedPane();
        adminPanel = new javax.swing.JScrollPane();
        moneyPane = new javax.swing.JScrollPane();
        reportPane = new javax.swing.JScrollPane();

        jTabbedPane1.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT);
        jTabbedPane1.addTab("Admin", adminPanel);
        jTabbedPane1.addTab("Money", moneyPane);
        jTabbedPane1.addTab("Report", reportPane);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JScrollPane adminPanel;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JScrollPane moneyPane;
    private javax.swing.JScrollPane reportPane;
    // End of variables declaration//GEN-END:variables

}
